import request from "@/api";

// 获取pv数量
export function getPVCount() {
  return request({
    url: "/statistics/getPVCount",
    method: "get",
    params: {},
  });
}

// 获取uv数量
export function getUVCount() {
  return request({
    url: "/statistics/getUVCount",
    method: "get",
    params: {},
  });
}

// 获取pv变化趋势
export function countPvAndUv() {
  return request({
    url: "/statistics/countPvAndUv",
    method: "get",
    params: {},
  });
}

// 获取文章类别Top10
export function getArticleCategoryTopN() {
  return request({
    url: "/statistics/getArticleCategoryTopN",
    method: "get",
    params: {},
  });
}

// 统计文章访问量
export function countArticleVisits() {
  return request({
    url: "/statistics/countArticleVisits",
    method: "get",
    params: {},
  });
}
